package day05;

import java.util.Scanner;

public class ArrayDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] a = new int[10];
        int[] b = new int[100];
//        for (int i = 0; i <a.length ; i++) {
//            a[i] = sc.nextInt();
//        }
//        for (int i = 0; i <a.length ; i++) {
//            System.out.println(a[i]);
//        }
        int count1 = 0;
        for (int i = 0; i <b.length ; i++) {
            count1 ++;
            b[i] =(int) (Math.random()*100+1);
            System.out.println(b[i]+"--->"+count1);
            int count =1;
            for (int j = 0; j <i ; j++) {
                if (b[i] == b[j]){
                    count++;
                    System.out.println(b[i]+"------------->"+count);
                }
            }
        }
    }
}
